package com.loves.admin.util.common;

/**
 * @Description
 * @Author 苏梓泳 ex_suzy
 * @Date 2019/10/9 12:30
 * @Version V1.0
 **/
public enum CodeEnum implements BaseErrorInfoInterface{
    /**
     *
     * 苏梓泳 ex_suzy
     * 2019/10/9 12:37
     */
    SUCCESS("200", "成功!"),
    BODY_NOT_MATCH("400","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!");

    /**
     * 代码
     * 苏梓泳 ex_suzy
     * 2019/10/9 12:37
     */
    private String code;

    /**
     * 描述
     * 苏梓泳 ex_suzy
     * 2019/10/9 12:37
     */
    private String msg;


    CodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
